package cn.silver.module.workflow.domain;

import cn.silver.framework.mybatis.annotation.Table;
import cn.silver.framework.mybatis.domain.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serial;
import java.io.Serializable;

/**
 * @author zhouxiaobo
 */
@Data
@NoArgsConstructor
@Table(name = "wf_model_variable")
@EqualsAndHashCode(callSuper = true)
@Schema(name = "WfModelVariable", title = "流程管理-流程模型管理-流程变量信息")
public class WfModelVariable extends BaseEntity implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;
    /**
     * 流程Id
     */
    @Schema(title = "流程Id")
    private String modelId;
    /**
     * 变量名
     */
    @Schema(title = "变量名")
    private String code;
    /**
     * 显示名
     */
    @Schema(title = "显示名")
    private String name;
    /**
     * 变量类型
     */
    @Schema(title = "变量类型")
    private String type;
    /**
     * 是否内置
     */
    @Schema(title = "是否内置")
    private Boolean builtin;
    /**
     * 绑定数据源Id
     */
    @Schema(title = "绑定数据源Id")
    private String datasource;
    /**
     * 绑定数据源关联Id
     */
    @Schema(title = "绑定数据源关联Id")
    private String relation;
    /**
     * 绑定字段Id
     */
    @Schema(title = "绑定字段Id")
    private String columnId;
}
